gtk_icon_theme_get_icon_sizes
gtk_icon_paintable_get_filename
gtk_icon_paintable_is_symbolic
-gtk_icon_paintable_download_texture
<SUBSECTION Standard>
GtkIconClass
GTK_ICON_THEME
*
* Looks up a named icon for a desired size and window scale, returning a
* #GtkIcon. The icon can then be rendered by using it as a #GdkPaintable,
- * or you can get information such as the filename and size. The pixels
- * of the texture can be access by using gtk_icon_paintable_download_texture().
+ * or you can get information such as the filename and size.
*
* If the available @icon_name is not available and @fallbacks are provided,
* they will be tried in order.
}
}
-/**
- * gtk_icon_paintable_download_texture:
- * @self: a #GtkIcon
- *
- * Tries to access the pixels of an icon.
- *
- * Returns: (transfer full): An texture with the contents of the icon.
- */
-GdkTexture *
-gtk_icon_paintable_download_texture (GtkIconPaintable *self)
+static GdkTexture *
+gtk_icon_paintable_ensure_texture (GtkIconPaintable *self)
{
GdkTexture *texture = NULL;
double render_height;
gboolean symbolic;
- texture = gtk_icon_paintable_download_texture (icon);
+ texture = gtk_icon_paintable_ensure_texture (icon);
symbolic = gtk_icon_paintable_is_symbolic (icon);
if (symbolic)
const gchar * gtk_icon_paintable_get_filename (GtkIconPaintable *self);
GDK_AVAILABLE_IN_ALL
gboolean gtk_icon_paintable_is_symbolic (GtkIconPaintable *self);
-GDK_AVAILABLE_IN_ALL
-GdkTexture * gtk_icon_paintable_download_texture (GtkIconPaintable *self);
G_END_DECLS